<%@ page import="iorder.Customer" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="default">
		<g:set var="entityName" value="${message(code: 'customer.label', default: 'Customer')}" />
		<title><g:message code="default.edit.label" args="[entityName]" /></title>
	</head>
	<body>
		<!--<div id="edit-customer" class="content scaffold-edit" role="main"> -->
                <div id="create-edit-container">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${customerInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${customerInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>  

                  <div id='createEditForm'>                   
                       <g:form method="post">
				<g:hiddenField name="id" value="${customerInstance?.id}" />
				<g:hiddenField name="version" value="${customerInstance?.version}" />
				<fieldset class="form">
				     <g:render template="form"/>
				</fieldset>
				<fieldset class="buttons">
                                    <g:actionSubmit class="submit" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />					
				</fieldset>                                
                       </g:form>                    
                  </div>
		</div>
 
                
          
	</body>
</html>
